class AComposite < ActiveRecord::Base
    
    def name
		raise NotImplementedError.new("Operation '#{__method__}' not supported")
    end

    def description
		raise NotImplementedError.new("Operation '#{__method__}' not supported")
    end
	
    def metadata
		raise NotImplementedError.new("Operation '#{__method__}' not supported")
    end

    def children
		raise NotImplementedError.new("Operation '#{__method__}' not supported")
    end	
	
	def self.sort_options
		[
			{ name: 'Name', id: 'name' },
			{ name: 'Date', id: '#.created_at' },
			{ name: 'Last updated', id: '#.updated_at' }
		]
	end
	
end
